package leecode

func sumOfSquares(nums []int) int {
	var result int
	n := len(nums)
	for i := 0; i < len(nums); i++ {
		if n%(i+1) == 0 {
			result += nums[i] * nums[i]
		}
	}
	return result
}
